package com.asfaloth.wss.biz.impl;

import com.asfaloth.wss.biz.IWssUserBiz;
import com.asfaloth.wss.dao.IWssUserDao;
import com.asfaloth.wss.entity.WssUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.annotation.Resource;
import javax.jws.WebService;

/**
 * Created by 80002004 on 2017/1/20.
 */
@WebService(serviceName = "wssUserBiz", endpointInterface = "com.asfaloth.wss.biz.IWssUserBiz")
public class WssUserBiz implements IWssUserBiz {

    Logger logger = LoggerFactory.getLogger(WssUserBiz.class);

    @Resource
    private IWssUserDao wssUserDao;

    @Override
    public void insert(WssUser user)
    {
        wssUserDao.insert(user);
        logger.info("webservice has been called");
    }
}
